{if !$arrWorkService['WorkWikiTotal']}
<div class="no-data">
	<p class="lead text-warning">
		<i class="fa fa-frown-o fa-lg"></i> 暂无交稿哦！{if $gUid !=$arrTaskInfo['uid']}<a href="index.php?do=taskhandle&op=planquote&taskId={$arrTaskInfo['task_id']}">我来交稿</a>{/if}
	</p>
</div>
{else}
<!-- second-nav end -->
<ul class="nav nav-pills second-nav">
	<li {if !$st&&!$ut}class="active"{/if}><a href="{$strUrl}&view=work#detail">所有的</a></li>
	<li {if $ut== 'noview'}class="active"{/if}><a href="{$strUrl}&view=work&ut=noview#detail">未浏览的</a></li>
	<li {if $st==4}class="active"{/if}><a href="{$strUrl}&view=work&st=4#detail">中标的</a></li>
	<li {if $st==7}class="active"{/if}><a href="{$strUrl}&view=work&st=7#detail">淘汰的</a></li>
	{if $arrUid['uid'] != $gUid}
	<li {if $ut== 'my'}class="active"{/if}><a href="{$strUrl}&view=work&ut=my#detail">我的</a></li>
	{/if}
</ul>
<div class="manuscripts">
	<div id="gj_summery">
		{if $arrWorkInfo} {loop $arrWorkInfo $k $v}
		<div id="{$v['bid_id']}" class="manuscript-item">

			<div class="manuscript-status">
				{if $v['bid_status']}
				<div class="status-item status-{$arrWorkFlag[$v['bid_status']]['id']}">
					<i class="fa {$arrWorkFlag[$v['bid_status']]['style']}"></i> {$arrWorkFlag[$v['bid_status']]['name']}
				</div>
				{/if}
			</div>
			<div class="manuscript-item-pic">
				<a href="index.php?do=seller&id=$v['uid']" title="$v['username']">
					<!--{userpic($v['uid'],'larger')}-->
				</a> <a href="index.php?do=seller&id=$v['uid']" class="btn btn-default btn-xs btn-block">进入店铺</a> {if $gUid!=$v['uid']} <a href="javascript:sendMessage({$v['uid']});void(0);" class="btn btn-default btn-xs btn-block">联系我</a> {/if}
			</div>
			<div class="manuscript-item-content">
				<div class="manuscript-item-body">
					<h2 class="manuscript-item-title">
						<i class="fa fa-user"></i> 投稿人: <a href="index.php?do=seller&id=$v['uid']" title="$v['username']">$v['username']</a>
						<!--{eval $arrUserLeve=unserialize($v[seller_level])}-->
						{$arrUserLeve['pic']}
					</h2>
					{if $v['bid_status']==8||($v['workhide']==1&&$gUid!=$arrTaskInfo['uid']&&$gUid!=$v['uid'])}
					<div class="no-data">
						<p class="lead text-warning">
							<i class="fa fa-ban fa-2x"></i> 您无权查看 ！
						</p>
					</div>
					{else} {if $v['work_pic']}
					<!--{eval $pic = explode(',',$v['work_pic']);}-->
					<div class="manuscript-img">
						{loop $pic $vc} <a href="{$vc}" class="manuscript-img-item" rel="manuscript-img-group"><img src="{$vc}" alt=""></a> {/loop}
					</div>
					{/if}
					<div class="manuscript-desc">

						<table class="table table-bordered">
							<tbody>
								<tr>
									<th width="20%">投标金额</th>
									<td><span class="money"> <sub>￥</sub> {$v['quote']}
									</span></td>
								</tr>

								<tr>
									<th width="20%">工作周期</th>
									<td><span class="money"> <sub></sub> {$v['cycle']}
									</span> 天</td>
								</tr>

								<tr>
									<th>投标内容</th>
									<td>
										<!--{eval echo htmlspecialchars_decode($v['message'])}-->
									</td>
								</tr>

								<tr>
									<th>投标地点</th>
									<td>
										<address>{$v['area']}</address>
									</td>
								</tr>
							</tbody>
						</table>
					</div>

					<div class="manuscript-desc">

						<div class="table-responsive">
							<table class="table table-hover table-bordered">
								<thead>
									<tr>
										<th>工作阶段</th>
										<th>工作计划</th>
										<th>开始时间</th>
										<th>结束时间</th>
										<th>回报金额</th>
										<th>状态</th>
										<th>操作</th>
									</tr>
								</thead>
								<tbody>
									{loop $v['plan'] $pk $pv}
									<tr class="{if $pv['plan_status']==2}success text-success{else}active{/if}">
										<td>{$pv['plan_step']}</td>
										<td>{$pv['plan_title']}</td>
										<td>
											<!--{date('Y-m-d',$pv['start_time'])}-->
										</td>
										<td>
											<!--{date('Y-m-d',$pv['end_time'])}-->
										</td>
										<td><span class="money">$pv['plan_amount']</span></td>
										<td>第{$pv['plan_step']}阶段{$arrPlanStatus[$pv['plan_status']]}</td>
										<td>
											<!--{eval $m = $k2+1;}--> {if $pv['plan_status']==2}<i class="fa fa-check-circle"></i>{/if} {if $v[bid_status]==4} {if ($pv['plan_step']==1&&$pv['plan_status']!=2)||$i==1}<!--{eval $j=1;}-->{else}<!--{eval $j=2;}-->{/if} {if $arrProcess_can['plan_complete']&&$pv['plan_status']==0&&$j==1} <a id="complate_{$pv[plan_id]}" href="javascript:planComplete($pv['plan_id'],$pv['plan_step']);void(0);">工作完成</a> {/if} {if $arrProcess_can['plan_confirm']&&$pv['plan_status']==1&&$j==1} <a id="confirm_{$pv[plan_id]}" href="javascript:planConfirm($pv['plan_id'],$pv['plan_step']);void(0);">确定完成</a> {/if} {if $pv['plan_status']==2}<!--{eval $i=1;}-->{else}<!--{eval $i=2;}-->{/if} {else} 暂无 {/if}
										</td>
									</tr>
									{/loop}

								</tbody>
							</table>
						</div>
					</div>
					<div class="manuscript-ctrl">
						{if $arrProcess_can['work_choose']} {if !in_array($v['bid_status'],array('4','7','8'))} <a href="javascript:chooseWork('{$v[bid_id]}',4);void(0);" class="btn btn-success btn-sm"><i class="fa fa-check-circle"></i> 设为中标</a> {/if} {if !in_array($v['bid_status'],array('4','7','8'))} <a href="javascript:chooseWork('{$v[bid_id]}',7);void(0);" class="btn btn-default btn-sm"><i class="fa fa-times-circle"></i> 设为淘汰</a> {/if} {/if} {if $arrProcess_can['pub_agreement']} <a href="javascript:PubAgreement('{$v[bid_id]}',4);void(0);" class="btn btn-success btn-sm"><i class="fa fa-check-circle"></i>确认工作</a> {/if} {if $arrProcess_can['work_over']} <a href="javascript:WorkOver('{$v[bid_id]}',4);void(0);" class="btn btn-success btn-sm"><i class="fa fa-check-circle"></i>确认工作</a> {/if} {if
						!$arrMark[$v[bid_id]]||($arrMark[$v[bid_id]][mark_status]!=1&&$arrMark[$v[bid_id]][mark_count]<2)} {if $arrProcess_can['work_mark']&&$uid==$arrTaskInfo['uid']} <a href="javascript:mark(2,'{$v[bid_id]}','{$id}');void(0);" class="btn btn-success btn-sm">{if $arrMark[$v[bid_id]][mark_status]}修改评价{else}稿件评价{/if}</a></span>{/if} {if $arrProcess_can['task_mark']&&$uid==$v['uid']} <a href="javascript:mark(1,'{$v[bid_id]}','{$id}');void(0);" class="btn btn-success btn-sm">{if $arrMark[$v[bid_id]][mark_status]}修改评价{else}评价雇主{/if}</a></span>{/if} {/if}
					</div>

					<div class="manuscript-comment">
						<div id="div_comment{$v['bid_id']}">
							{if $gUid == $arrTaskInfo['uid']||$v['comment']}
							<h2 class="manuscript-item-title">稿件点评</h2>
							{/if} {loop $v['comment'] $v1}
							<dl class="manuscript-comment-item">
								<dt class="manuscript-comment-item-title">
									<a href="index.php?">$v1['username']</a> 于
									<!--{eval echo date('Y-m-d',$v1['on_time'])}-->
									<!--{eval $h = date('H',$v1['on_time'])}-->
									{if $h>0&&$h<12}上午{elseif $h>=12&&$h<19}下午{else}晚上{/if}
									<!--{eval echo date('h:i:s',$v1['on_time'])}-->
									点评:
								</dt>
								<dd class="manuscript-comment-item-body">$v1['content']</dd>
							</dl>
							{/loop}
						</div>
						{if $gUid == $arrTaskInfo['uid']}
						<div class="manuscript-comment-post">
							<div class="form-group">
								<textarea class="form-control" rows="3" name="strTarComment" id="strTarComment{$v['bid_id']}" placeholder="点评不得超过100字"></textarea>
							</div>
							<div class="form-group">
								<button type="button" onclick="workComment('{$v[task_id]}','{$v[bid_id]}',{$v[uid]});" class="btn btn-default btn-sm">
									<i class="fa fa-comment"></i> 点评稿件
								</button>
								<span class="text-success" id="tipsUser"></span>
							</div>
						</div>
						{/if}
						<!-- manuscript-comment-post end -->
					</div>
					{/if}
				</div>
				<div class="manuscript-item-footer">
					<ul class="manuscript-meta">
						<li class="manuscript-meta-item">编号 #{$v[bid_id]}</li>
						<li class="manuscript-meta-item">投稿时间：<!--{date('Y-m-d H:i:s',$v[bid_time])}--></li>
						<li class="manuscript-meta-item"><span class="marked marked-see"> {if $v['is_view']||$uid==$arrTaskInfo['uid']} 雇主已浏览 {else} 雇主未浏览 {/if} </span></li> {if $arrProcess_can['work_report']&&$gUid!=$v['uid']&&$v['bid_status']!=7&&$gUid}
						<li class="manuscript-meta-item"><a href="javascript:report(2,'work','{$v[uid]}','{$arrTaskInfo[task_id]}','{$v[bid_id]}');void(0);" class="action-report"> <i class="fa fa-bell"></i> 举报
						</a></li> {/if} {if $arrProcess_can['task_rights']}
						<li class="manuscript-meta-item">{if $uid==$arrTaskInfo['uid']&&$v[bid_status]==4} <a href="javascript:report(1,'work','{$v[uid]}','{$arrTaskInfo[task_id]}','{$v[bid_id]}');void(0);" class="action-report"> {else} <a href="javascript:report(1,'task','{$arrTaskInfo[uid]}','{$arrTaskInfo[task_id]}','{$arrTaskInfo[task_id]}');void(0);" class="action-report"> {/if} <i class="fa fa-bell"></i>维权
							</a></li> {/if}
					</ul>
				</div>
			</div>
			<!-- manuscript-item-content end -->
		</div>
		{/loop} {/if}
		<!-- manuscript-item end-->


		<!-- manuscripts end -->

		<div class="list-page">
			<div class="page-tips pull-left">显示 {$strPages['st']}~{$strPages['en']} 项 共 {$arrWorkArrs['count']} 个投稿</div>
			<ul class="pagination pagination-sm pull-right">{$strPages[page]}
			</ul>
		</div>
	</div>
</div>
{/if}
<!-- list-page end -->